import App from './App';
import { createSSRApp } from 'vue';
import { setupPinia } from './sheep/store';
import moment from 'moment';

export function createApp() {
  const app = createSSRApp(App)

  setupPinia(app);
  
  // 挂载moment到Vue实例
  app.config.globalProperties.$moment = moment;

  return {
    app,
  };
}
